package com.kgc.scd.service;

import com.kgc.scd.bean.ShopSignInDay;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

/**
 * Created On : 2022/11/17.
 * <p>
 * Author : yantao
 * <p>
 * Description: SignInServerService
 */
@FeignClient("wyyxmall-yt-server")
public interface SignInServerService {

    /**
     *   @GetMapping("addSmallPointsToUsers")
     */

    /**
     * @author : yantao
     * @date   : 2022/11/17
     * @param  : [userId]
     * @return : void
     * @description : 增加小积分 2个
     */
    @GetMapping("/ytserver/addSmallPointsToUsers")
    void addSmallPointsToUsersServer(@RequestParam("userId") String userId);
    /**
     * @GetMapping("addLargePointsToUsers")
     */

    /**
     * @author : yantao
     * @date   : 2022/11/17
     * @param  : [userId]
     * @return : void
     * @description : 增加大积分 4个
     */
    @GetMapping("/ytserver/addLargePointsToUsers")
    void addLargePointsToUsersServer(@RequestParam("userId") String userId);

    @GetMapping("/ytserver/insertDaySignIn")
    void addDaySign(@RequestParam("userId") String userId);


    @GetMapping("/ytserver/selectDayAll")
    List<ShopSignInDay> getDayAll(@RequestParam("userId") String userId);


}
